#pragma once
#include "WnLock.h"
#include <boost/thread.hpp>

class CWnEvent
{
public:
  CWnEvent(void);
  virtual ~CWnEvent(void);
public:
  void wait();
  void notify_one();
  void notify_all();
private:
  CWnLock m_lock;
  boost::condition_variable_any m_condition;
};